package com.digital.smartgrow.vo.dict;


import com.digital.smartgrow.entity.sysinfo.DictionaryItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Created by SunYuechao on 2022/7/11 下午9:24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="dictItem", description="字典项集合")
public class DictItemVO implements Serializable {

    public DictItemVO(DictionaryItem item) {
        this.id = item.getId();
        this.itemNumber = item.getItemNumber();
        this.itemName = item.getItemName();
    }

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "字典项编号")
    private String itemNumber;

    @ApiModelProperty(value = "字典项名称")
    private String itemName;

}
